package com.darwin.eureka_client.feign;

import com.darwin.eureka_client.entity.result.Result;
import com.darwin.eureka_client.feign.Impl.UserServer_FeignImpl;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.ribbon.proxy.annotation.Hystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "user-server", fallback = UserServer_FeignImpl.class)
public interface UserServer_Feign {
    @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
    public Result getUser(@PathVariable("id") Long id);

}
